/**
 * Created by Noir on 1/6/14.
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var tagSchema = new Schema({
    name:{
        type: String,
        required: true
    },
    creator:{
        type: Schema.Types.ObjectId,
        ref: 'User'
    },
    createDate: {
        type: Date,
        default: Date.now
    }
});

module.exports = mongoose.model('Tag', tagSchema);
